how control reverse forward motor